//package com.gyt.manager.cos;
//
//import com.qcloud.cos.COSClient;
//import com.qcloud.cos.ClientConfig;
//import com.qcloud.cos.auth.BasicCOSCredentials;
//import com.qcloud.cos.auth.COSCredentials;
//import com.qcloud.cos.endpoint.EndpointBuilder;
//import com.qcloud.cos.region.Region;
//
///**
// * description.
// *
// * @author gyt create on 2021/6/16 16:42
// */
//public class SelfDefinedEndpointBuilder implements EndpointBuilder {
//    @Override
//    public String buildGeneralApiEndpoint(String s) {
//        return "sz.gfp.tencent-cloud.com";
//    }
//
//    @Override
//    public String buildGetServiceApiEndpoint() {
//        return "sz.gfp.tencent-cloud.com";
//    }
//    public static void main(String[] args) {
//        String secretId = "3Qw0zKYmDAQHPukui8kcIdsg";
//        String secretKey = "/lkzCgJWUAviyA8QIKGbUNo76xbGVt8xNt";
//        COSCredentials cred = new BasicCOSCredentials(secretId, secretKey);
//        SelfDefinedEndpointBuilder builder = new SelfDefinedEndpointBuilder();
//        ClientConfig clientConfig = new ClientConfig(new Region("ap-guangzhou"));
//        clientConfig.setEndpointBuilder(builder);
//        COSClient cosClient = new COSClient(cred, clientConfig);
//        System.out.println(cosClient);
//    }
//}
